﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Atomic.Permission.Entities;
using FluentNHibernate.Mapping;

namespace Atomic.Permission.Mappings
{
    public class FunPointMap : ClassMap<FunPointEntity>
    {
        public FunPointMap()
        {
            Table("FunPoint");
            Id(m => m.ID).GeneratedBy.Native();
            Map(m => m.Enabled).CustomSqlType("int");
            Map(m => m.FormID);
            Map(m => m.Key).Column("[Key]").Length(100).Not.Nullable().Unique();
            Map(m => m.Name).Length(50).Not.Nullable();
        }
    }
}
